<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<title>Gestione Schede Informative</title>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
	  @import "../css/modulo.css";
      @import "../css/default_table.css";
      @import "../css/default_table_jui.css";
</style>
<script type="text/javascript" src="../js/jquery.js" ></script>
<script type="text/javascript" src="../js/jquery.dataTables.js" ></script>

<style type="text/css">
.row_selected​ {
    color:red;
}​
</style>

<script type="text/javascript">

var oTable;

$(document).ready(function() {

    oTable = $('#example').dataTable( {
        "bProcessing": true,
        "bServerSide": true,
        "sServerMethod": "POST",
        "sScrollX": "100%",
        "bAutoWidth": false,
        "iDisplayLength": 10,
        "iTabIndex": 1,
        "bPaginate": true,
        "sPaginationType": "full_numbers",
        "sAjaxSource": "paging.php",
        "sDom": "Rlfrtip",
        "aLengthMenu": [
        	[5, 10, 20, 25],
            [5, 10, 20, 25]
        ]
    } );

    $('#example tbody tr').live('dblclick',function(){
        var aPos = oTable.fnGetPosition(this);
        var aData = oTable.fnGetData(aPos);
        var id = aData[0];
        //alert(aData[0]);
    	newwindow=window.open('scheda.php?pkid='+id,'','width=800,height=500,scrollbars=yes, screenX=300,screenY=100,left=300,top=100');
    	if (window.focus) {
        	newwindow.focus();
        }
        
    	return false;
    });

    $("#example tbody").click(function (event) {
        $(oTable.fnSettings().aoData).each(function () {
            $(this.nTr).removeClass('row_selected');
        });
        $(event.target.parentNode).addClass('row_selected');
    });
    
} );
</script>
</head>
<body>
<div id="container">
<h2>Gestione Schede Informative</h2>

<div id="dynamic">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example" style="table-layout: fixed;">
	<thead>
		<tr>
			<th width="40px">Id</th>
			<th width="250px">Cliente</th>
			<th width="80px">Data</th>
			<th width="200px">Riferimento</th>
			<th width="200px">Riferimento Email</th>
			<th width="180px">Riferimento Tel.</th>
			<th width="80px">Virtual</th>
			<th width="180px">Virtual type</th>
			<th width="180px">Appserver Cpu</th>
			<th width="80px">N° Cpu</th>
			<th width="200px">Appserver OS</th>
			<th width="80px">64bit</th>
			<th width="80px">Ram totale</th>
			<th width="80px">Ram libera</th>
			<th width="120px">Tipo raid</th>
			<th width="120px">Tipo hd</th>
			<th width="80px">Gb liberi</th>
			<th width="80px">Cluster</th>
			<th width="80px">Marca server</th>
			<th width="120px">Modello</th>
			<th width="180px">App1</th>
			<th width="180px">App2</th>
			<th width="180px">App3</th>
			<th width="180px">App4</th>
			<th width="180px">App5</th>
			<th width="80px">Coincidono</th>
			<th width="80px">Dbserver Presente</th>
			<th width="180px">Dbrms</th>
			<th width="80px">Virtual</th>
			<th width="180px">Virtual type</th>
			<th width="180px">Dbserver Cpu</th>
			<th width="40px">N° Cpu</th>
			<th width="200px">Dbserver OS</th>
			<th width="80px">64bit</th>
			<th width="80px">Ram totale</th>
			<th width="80px">Ram libera</th>
			<th width="120px">Tipo raid</th>
			<th width="120px">Tipo hd</th>
			<th width="80px">Gb liberi</th>
			<th width="80px">Cluster</th>
			<th width="80px">Marca server</th>
			<th width="120px">Modello</th>
			<th width="180px">App1</th>
			<th width="180px">App2</th>
			<th width="180px">App3</th>
			<th width="180px">App4</th>
			<th width="180px">App5</th>
			<th width="100px">Post.sede princ</th>
			<th width="100px">Sedi remote</th>
			<th width="100px">Numero sedi</th>
			<th width="100px">Connettività</th>
			<th width="100px">Postazioni per sede</th>
			<th width="100px">Abitanti Comune</th>
			<th width="100px">Backup presente</th>
			<th width="100px">Backup apposito</th>
			<th width="400px">Note</th>
			<th width="100px">Punteggio</th>
			<th width="100px">Valutazione</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td colspan="4" class="dataTables_empty">Caricamento Dati</td>
		</tr>
	</tbody>
	<tfoot>
		
	</tfoot>
</table>
</div>
</div>
<div>
<form action="export.php">
	<input type="submit" id="export" name="export" value="Export CSV"  />
</form>
</div>
</body>